<?php
/**
 * @deprecated 
 * Description: 云逛展-领取优惠券 日志
 * Created by PhpStorm.
 * User: congyukun
 * Date: 2021/3/17
 * Time: 18:26
 */

class receiveCouponAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;
    
    public function main()
    {
        $brand_id = $this->getRequest()->getPost('brand_id');
        $uid = $this->uid;
        if (empty($brand_id) || !$uid) {
            throw new \Exception('非法请求');
        }
        $data = ['brand_id' => $brand_id, 'uid' => $uid];
        \Doraemon\tools\ActionLog::log($uid, $data, \Doraemon\tools\ActionLog::ACTIVITY_RECEIVE_COUPON);
        $this->setSuccess($data);
        
    }
    
    
}